package com.zretc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AjaxController {

	//produces="application/json;charset=utf-8" 相当于 response.setContentType("..............");
	@GetMapping(value = "ajaxhello",produces="application/json;charset=utf-8")
	public String sayHello(String name) {
		return "hello :" + name;
	}

}
